.class Lcom/waiqin365/lightapp/visit/z;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/LinearLayout;

.field final synthetic b:Landroid/widget/LinearLayout;

.field final synthetic c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Landroid/widget/LinearLayout;Landroid/widget/LinearLayout;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    iput-object p2, p0, Lcom/waiqin365/lightapp/visit/z;->a:Landroid/widget/LinearLayout;

    iput-object p3, p0, Lcom/waiqin365/lightapp/visit/z;->b:Landroid/widget/LinearLayout;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/z;->a:Landroid/widget/LinearLayout;

    const-string/jumbo v1, "childopenContent"

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    move v1, v2

    :goto_0
    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v3

    if-ge v1, v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->z(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->k(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->m(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/z;->b:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/z;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/z;->a:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0c8f

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->A(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v3

    const/16 v5, 0x5f

    invoke-virtual {v1, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v5

    invoke-virtual {v1, v2, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    if-eqz v1, :cond_1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    move v3, v2

    :goto_1
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v3, v0, :cond_1

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v6

    add-int/lit8 v6, v6, -0x1

    invoke-virtual {v4, v2, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    add-int/lit8 v6, v3, 0x1

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitcache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/z;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->e(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitcache/f;->b(Ljava/lang/String;Ljava/lang/String;)Z

    return-void
.end method
